package cn.com.greatwall.log.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.com.greatwall.search.client.service.IQueryService;
import io.swagger.annotations.ApiOperation;

/**
 * @Author herw
 * @Time 2022-02-21 12:28:51
 * @Version 1.0
 * @Description: 访问统计
 */
@RestController
public class AggregationController {
    @Autowired
    private IQueryService queryService;

    @ApiOperation(value = "访问统计")
    @GetMapping(value = "/requestStat")
    public Map<String, Object> requestStatAgg() {
        return queryService.requestStatAgg("point-log-*","request-statistics");
    }
}
